<div class="box">
<!-- /.box-header -->
    <div id="a" class="box-body">
        @php
echo '<textarea id="copyTextarea-'.$data->id.'" class="form-control _normal_" rows="9" readonly>';

    $link = \App\Models\Configuration::getItem("links_shopCenter") . "data=";
    $jsonarr = [
        "userID" => $data->tiktokid,
        "timezone" => $data->timezone,
        "nickname" => $data->nickname,
        "customID" => $data->tiktokno,
        "lang" => $data->lang,
        "avatar" => $data->avatar
    ];
    $jsonstr = json_encode($jsonarr);
    $jsonstr = base64_encode($jsonstr);
    $jsonstr = urlencode($jsonstr);

    print_r($link . $jsonstr);

echo '</textarea>';
        @endphp
        <button style="margin-top: 15px;" onclick="copy{{ $data->id }}()" class="btn btn-primary btn-outline grid-column-copyable" data-placement="bottom" data-original-title="已复制">
            <i class="fa fa-copy"></i><span class="d-none d-sm-inline">&nbsp;&nbsp;复制</span>
        </button>
    </div>
        <script>
            function copy{{ $data->id }}() {
                var content = document.getElementById('copyTextarea-{{ $data->id }}');
                content.select();
                document.execCommand("copy");
            }
        </script>
    <!-- /.box-body -->
</div>
